package heimaObject;

public class testStudent {
  public static void main(String[] args) {
    Student s = new Student();
    System.out.println("s 对象存放地址ID：" + s);
    s.name = "雷军";
    s.age = 55;
    s.setMoney(1999);

    System.out.println(s.name);
    System.out.println(s.age);
    int money = s.getMoney();
    System.out.println(money);

    s.study();
    s.doHomework();
    s.showMoney();

    //    System.out.println("存款："+s.money);  private 私有属性不可访问

    Student s2 = new Student(52, "马斯克");
    s2.show();
  }
}
